package com.ruoyi.chat.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 朋友关系对象 friendship
 * 
 * @author zhc
 * @date 2025-05-31
 */
public class Friendship extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 自己的用户id */
    @Excel(name = "自己的用户id")
    private String myId;

    /** 我朋友的id */
    @Excel(name = "我朋友的id")
    private String friendId;

    /** 好友的备注名 */
    @Excel(name = "好友的备注名")
    private String friendRemark;

    /** 聊天背景，局部 */
    @Excel(name = "聊天背景，局部")
    private String chatBg;

    /** 是否消息免打扰，0-打扰，不忽略消息(默认)；1-免打扰，忽略消息 */
    @Excel(name = "是否消息免打扰，0-打扰，不忽略消息(默认)；1-免打扰，忽略消息")
    private Long isMsgIgnore;

    /** 是否拉黑，0-好友(默认)；1-已拉黑 */
    @Excel(name = "是否拉黑，0-好友(默认)；1-已拉黑")
    private Long isBlack;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setMyId(String myId) 
    {
        this.myId = myId;
    }

    public String getMyId() 
    {
        return myId;
    }

    public void setFriendId(String friendId) 
    {
        this.friendId = friendId;
    }

    public String getFriendId() 
    {
        return friendId;
    }

    public void setFriendRemark(String friendRemark) 
    {
        this.friendRemark = friendRemark;
    }

    public String getFriendRemark() 
    {
        return friendRemark;
    }

    public void setChatBg(String chatBg) 
    {
        this.chatBg = chatBg;
    }

    public String getChatBg() 
    {
        return chatBg;
    }

    public void setIsMsgIgnore(Long isMsgIgnore) 
    {
        this.isMsgIgnore = isMsgIgnore;
    }

    public Long getIsMsgIgnore() 
    {
        return isMsgIgnore;
    }

    public void setIsBlack(Long isBlack) 
    {
        this.isBlack = isBlack;
    }

    public Long getIsBlack() 
    {
        return isBlack;
    }

    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("myId", getMyId())
            .append("friendId", getFriendId())
            .append("friendRemark", getFriendRemark())
            .append("chatBg", getChatBg())
            .append("isMsgIgnore", getIsMsgIgnore())
            .append("isBlack", getIsBlack())
            .append("createdTime", getCreatedTime())
            .append("updatedTime", getUpdatedTime())
            .toString();
    }
}
